package com.edt.ichannel.api.service.impl;

import com.edt.ichannel.api.dao.OrderCreditBfDao;
import com.edt.ichannel.api.entiy.local.OrderCreditBf;
import com.edt.ichannel.api.service.OrderCreditBfService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * OrderCredetBf服务接口实现类
 * @author 
 * @date 2018-11-19
 */
@Service
public class OrderCreditBfServiceImpl implements OrderCreditBfService {

    @Resource
    private OrderCreditBfDao ordercredetbfDao;


    @Override
    public void saveOrderCreditBf(OrderCreditBf orderCreditBf) {
        ordercredetbfDao.saveOrderCredetBf(orderCreditBf);
    }

    @Override
    public List<OrderCreditBf> getAllNeedPutOut() {
        return ordercredetbfDao.getAllNeedPutOut();
    }

    @Override
    public void updateOrderCreditBf(OrderCreditBf orderCreditBfOld) {
        ordercredetbfDao.updateOrderCreditBf(orderCreditBfOld);
    }

    @Override
    public OrderCreditBf selectNewestData(String orderCode) {
        return ordercredetbfDao.selectNewestData(orderCode);
    }
}